package com.example.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.entity.AgePopulation;
import com.example.springboot.entity.Category;
import com.example.springboot.mapper.AgePopulationMapper;
import com.example.springboot.mapper.CategoryMapper;
import com.example.springboot.service.AgePopulationService;
import com.example.springboot.service.ICategoryService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Description
 * @Author
 * @Date 2025/4/20
 */
@Service
public class AgePopulationServiceImpl extends ServiceImpl<AgePopulationMapper, AgePopulation> implements AgePopulationService {
    @Override
    public List<AgePopulation> getMaleList() {
        return this.baseMapper.getList("男");
    }

    @Override
    public List<AgePopulation> getFemaleList() {
        return this.baseMapper.getList("女");
    }
}
